/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0055aa;
}

/* 页眉样式 */
header {
    background: #0066cc;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 5px 10px;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* 快捷入口 */
.quick-access {
    padding: 60px 0;
    background: #f8f9fa;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #0066cc;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.access-item {
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.access-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.access-item i {
    color: #0066cc;
    margin-bottom: 15px;
}

.access-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.access-item p {
    color: #666;
    font-size: 0.9rem;
}

/* 实时推荐 */
.recommendations {
    padding: 60px 0;
}

.recommendations h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #0066cc;
}

.event-card {
    display: flex;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    flex: 4;
    min-height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-info {
    flex: 6;
    padding: 30px;
}

.event-info h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

.event-info .time, .event-info .location {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-info .desc {
    margin: 20px 0;
    color: #444;
}

/* 页脚样式 */
footer {
    background: #222;
    color: #ddd;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.footer-section i {
    margin-right: 10px;
    color: #0066cc;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    .carousel-container {
        height: 300px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-image {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }
}